#!/bin/sh
#./mvnw spring-boot:run
# 如果没有参数，就是dev,其它的是pr

#mvn clean package
mvn -Dmaven.test.skip=true package

ENV_LOCAL="dev"
if [ $# -eq 0 ]; then
    ENV_LOCAL="dev"
elif [ $1=="pro" ]; then
    ENV_LOCAL="pro"
else
    ENV_LOCAL="dev"
fi

#echo $ENV_LOCAL

#java -jar target/miui_ad_global_preinstall-0.0.1.jar
#nohup java -jar -Dspring.profiles.active=$ENV_LOCAL target/miui_ad_global_preinstall-0.0.1.jar  > nohup.log 2>&1 &
nohup java -jar  target/rsshunter-0.0.1-SNAPSHOT.jar > nohup.log 2>&1 &



#wget https://gerrit-releases.storage.googleapis.com/gerrit-2.14.2.war
